//
//  DPProgressView.h
//  DrinkingPlan
//
//  Created by 张德广 on 2019/3/15.
//  Copyright © 2019 Drinking Plan. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface DPProgressView : UIView

/**
 *   进度条宽度
 */
@property (nonatomic, assign) CGFloat progressLineWidth;
/**
 *  背景线条宽度
 */
@property (nonatomic, assign) CGFloat backgroundLineWidth;
/**
 *  进度百分比
 */
@property (nonatomic, assign) CGFloat percentage;
/**
 *  起始进度百分比
 */
@property (nonatomic, assign) CGFloat fromPercentage;
/**
 *  背景填充颜色
 */
@property (nonatomic, strong) UIColor *backgroundStrokeColor;
/**
 *  进度条填充颜色
 */
@property (nonatomic, strong) UIColor *progressStrokeColor;
/**
 *  距离边框边距偏移量
 */
@property (nonatomic, assign) CGFloat offset;
/**
 *  步长
 */
@property (nonatomic, assign) CGFloat step;
/**
 *  数字字体颜色
 */
@property (nonatomic, strong) UIColor *digitTintColor;

- (void)setProgress:(CGFloat)percentage fromPercentage:(CGFloat)fromPercentage animated:(BOOL)animated;

@end

NS_ASSUME_NONNULL_END
